﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebApiExample.Adapters.Data;
using WebApiExample.Adapters.Interfaces;
using WebApiExample.Model;

namespace WebApiExample.Controllers
{
    public class apiPetController : ApiController
    {
        IPetAdapter _pets;
        public apiPetController()
        {
            _pets = new PetDataAdapter();
        }


        // GET api/<controller>/5
        public IHttpActionResult Get(int id)
        {
            Pet model = _pets.GetPet(id);
            return Ok(model);
        }

        
    }
}